package com.facebook.imagepipeline.image;

import com.facebook.imagepipeline.animated.base.AnimatedImage;
import com.facebook.imagepipeline.animated.base.AnimatedImageResult;

public class CloseableAnimatedImage extends CloseableImage
{
  private AnimatedImageResult mImageResult;

  public CloseableAnimatedImage(AnimatedImageResult paramAnimatedImageResult)
  {
    this.mImageResult = paramAnimatedImageResult;
  }

  public void close()
  {
    try
    {
      if (this.mImageResult == null)
        return;
      AnimatedImageResult localAnimatedImageResult = this.mImageResult;
      this.mImageResult = null;
      localAnimatedImageResult.dispose();
      return;
    }
    finally
    {
    }
  }

  public int getHeight()
  {
    try
    {
      boolean bool = isClosed();
      if (bool);
      int i;
      for (int j = 0; ; j = i)
      {
        return j;
        i = this.mImageResult.getImage().getHeight();
      }
    }
    finally
    {
    }
  }

  public AnimatedImage getImage()
  {
    try
    {
      boolean bool = isClosed();
      if (bool);
      AnimatedImage localAnimatedImage;
      for (Object localObject2 = null; ; localObject2 = localAnimatedImage)
      {
        return localObject2;
        localAnimatedImage = this.mImageResult.getImage();
      }
    }
    finally
    {
    }
  }

  public AnimatedImageResult getImageResult()
  {
    try
    {
      AnimatedImageResult localAnimatedImageResult = this.mImageResult;
      return localAnimatedImageResult;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public int getSizeInBytes()
  {
    try
    {
      boolean bool = isClosed();
      if (bool);
      int i;
      for (int j = 0; ; j = i)
      {
        return j;
        i = this.mImageResult.getImage().getSizeInBytes();
      }
    }
    finally
    {
    }
  }

  public int getWidth()
  {
    try
    {
      boolean bool = isClosed();
      if (bool);
      int i;
      for (int j = 0; ; j = i)
      {
        return j;
        i = this.mImageResult.getImage().getWidth();
      }
    }
    finally
    {
    }
  }

  public boolean isClosed()
  {
    try
    {
      AnimatedImageResult localAnimatedImageResult = this.mImageResult;
      if (localAnimatedImageResult == null)
      {
        bool = true;
        return bool;
      }
      boolean bool = false;
    }
    finally
    {
    }
  }

  public boolean isStateful()
  {
    return true;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imagepipeline.image.CloseableAnimatedImage
 * JD-Core Version:    0.6.2
 */